import type {IUser} from "@/types";

export default function () {
    const userCar: IUser = {
        uid: 1,
        carList: [
            {sid: 1, number: 10, checked: false, name: "羊肉串", price: 18},
            {sid: 2, number: 3, checked: true, name: "猪肉串", price: 20},
            {sid: 3, number: 5, checked: false, name: "鸡翅", price: 5},
        ]
    }
    if (!localStorage.getItem('userCar')) {
        localStorage.setItem('userCar', JSON.stringify(userCar))
    }
    return {}
}